<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate/work/xmlhandler/nodes.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_374ee6e3281d8312d956f1f155302869.html">aestate</a></li><li class="navelem"><a class="el" href="dir_5abfa80149f37441c1f61fb6211d8f7d.html">work</a></li><li class="navelem"><a class="el" href="dir_e4ce6071d7ab5a5be0b29c949ad07848.html">xmlhandler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">nodes.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="nodes_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1work_1_1xmlhandler_1_1nodes.html">    1</a></span>&#160;<span class="comment"># -*- utf-8 -*-</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">import</span> importlib</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">import</span> re</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">from</span> abc <span class="keyword">import</span> ABC</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">from</span> <a class="code" href="namespaceaestate_1_1exception.html">aestate.exception</a> <span class="keyword">import</span> NotFindTemplateError, TagAttributeError, TagHandlerError</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">from</span> <a class="code" href="namespaceaestate_1_1util_1_1_log.html">aestate.util.Log</a> <span class="keyword">import</span> ALog</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">from</span> <a class="code" href="namespaceaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder.html">aestate.work.xmlhandler.XMLScriptBuilder</a> <span class="keyword">import</span> IfHandler</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">from</span> <a class="code" href="namespaceaestate_1_1work_1_1xmlhandler_1_1base.html">aestate.work.xmlhandler.base</a> <span class="keyword">import</span> AestateNode</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>(ABC):</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;抽象节点，所有节点的父类&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="comment"># 节点自身的操作</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a2dc3c3a10d6f40d5d77030fba62c4ff1">   17</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a2dc3c3a10d6f40d5d77030fba62c4ff1">__init__</a>(self, target_obj, params, aestate_xml_cls, root, value, XML_KEY, XML_IGNORE_NODES):</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">   18</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a> = target_obj</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">   19</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a> = params</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">   20</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a> = aestate_xml_cls</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">   21</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a> = root</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">   22</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a> = value</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">   23</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">XML_KEY</a> = XML_KEY</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#ad6d164442e31cebed14dd59199f652ee">   24</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#ad6d164442e31cebed14dd59199f652ee">XML_IGNORE_NODES</a> = XML_IGNORE_NODES</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="comment"># 得到节点的值</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a5a64756f416d336c20c37f9cda13c90d">   27</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a5a64756f416d336c20c37f9cda13c90d">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        ...</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">   30</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(self, texts: AestateNode, node):</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordflow">for</span> root_index, root_value <span class="keywordflow">in</span> enumerate(node.childNodes):</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;            <span class="keywordflow">if</span> root_value.nodeName <span class="keywordflow">in</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">XML_KEY</a>.keys():</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                obj = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">XML_KEY</a>[root_value.nodeName](self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>,</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                                                        root_value, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">XML_KEY</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#ad6d164442e31cebed14dd59199f652ee">XML_IGNORE_NODES</a>)</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                texts = obj.apply(texts=texts)</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <span class="keywordflow">elif</span> root_value.nodeName <span class="keywordflow">in</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#ad6d164442e31cebed14dd59199f652ee">XML_IGNORE_NODES</a>:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                    texts.add(node=root_value, index=root_index)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                <span class="keywordflow">except</span> Exception <span class="keyword">as</span> e:</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                    ALog.log_error(</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                        msg=<span class="stringliteral">&#39;&#39;</span>.join(e.args),</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                        obj=e, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                texts.extend(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1base_1_1_aestate_node.html">AestateNode</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, root_value))</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            <span class="keywordflow">except</span> Exception <span class="keyword">as</span> e:</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                ALog.log_error(</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                    msg=<span class="stringliteral">&#39;&#39;</span>.join(e.args),</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                    obj=e, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">return</span> texts</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html">   52</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html">SelectNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html#a5d057b4f53fc116fb5be5d150acaf41e">   54</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html#a5d057b4f53fc116fb5be5d150acaf41e">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="comment"># 取得已有的文本</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        axc_node = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="comment"># 返回值类型</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        resultType = axc_node.attrs[<span class="stringliteral">&#39;resultType&#39;</span>]</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        texts.mark[<span class="stringliteral">&#39;resultType&#39;</span>] = resultType.text</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html">   64</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html">UpdateNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html">   65</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html">TempTextNode</a>:</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#aaa93428a32e008f153660c9f15f0d6e9">   66</a></span>&#160;        <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#aaa93428a32e008f153660c9f15f0d6e9">__init__</a>(self, text):</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#a3ed30ff569976462c08f695cf0f53abc">   67</a></span>&#160;            self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#a3ed30ff569976462c08f695cf0f53abc">text</a> = text</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html#a55cf7bf0a568efe435da3b0136c6ab32">   69</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html#a55cf7bf0a568efe435da3b0136c6ab32">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="comment"># 取得已有的文本</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        axc_node = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="comment"># 返回值类型</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        has_last_id = axc_node.attrs[<span class="stringliteral">&#39;last&#39;</span>] <span class="keywordflow">if</span> <span class="stringliteral">&#39;last&#39;</span> <span class="keywordflow">in</span> axc_node.attrs.keys() <span class="keywordflow">else</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html">TempTextNode</a>(<span class="stringliteral">&#39;True&#39;</span>)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        texts.mark[<span class="stringliteral">&#39;has_last_id&#39;</span>] = has_last_id.text == <span class="stringliteral">&#39;True&#39;</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>)</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html">   79</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html">IfNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html#a2fe7f749b89b7bebd8b2570ba36d17a7">   81</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html#a2fe7f749b89b7bebd8b2570ba36d17a7">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        axc_node = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;test&#39;</span> <span class="keywordflow">not</span> <span class="keywordflow">in</span> axc_node.attrs.keys():</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                msg=f<span class="stringliteral">&#39;The attribute`test` in the if tag is missing a required structure&#39;</span>,</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                obj=TagAttributeError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <span class="keywordflow">return</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        test_syntax = axc_node.attrs[<span class="stringliteral">&#39;test&#39;</span>]</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        syntax_re_text = re.findall(<span class="stringliteral">&#39;(.*?)([&gt;=|&lt;=|==|&lt;|&gt;]+)(.*)&#39;</span>, test_syntax.text)</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">if</span> len(syntax_re_text) == 0:</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="comment"># 缺少必要的test标签语法</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                msg=f<span class="stringliteral">&#39;The attribute`test` in the if tag is missing a required structure&#39;</span>,</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                obj=TagAttributeError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="comment"># 移除空集</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        syntax_using = [x <span class="keywordflow">for</span> x <span class="keywordflow">in</span> syntax_re_text[0] <span class="keywordflow">if</span> x != <span class="stringliteral">&#39;&#39;</span>]</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordflow">if</span> len(syntax_using) == 2 <span class="keywordflow">or</span> len(syntax_using) &gt; 3:</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                msg=f<span class="stringliteral">&#39;The node rule parsing failed and did not conform to the grammatical structure.{syntax_using}&#39;</span>,</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                obj=TagHandlerError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        initial_field = syntax_using[0]</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        symbol = syntax_using[1]</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        value = syntax_using[2]</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        rfield = re.findall(<span class="stringliteral">&#39;#{(.*?)}&#39;</span>, initial_field)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        field = rfield[0] <span class="keywordflow">if</span> len(rfield) &gt; 0 <span class="keywordflow">and</span> rfield[0] <span class="keywordflow">in</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>.keys() <span class="keywordflow">else</span> initial_field</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="comment"># 让事件器来执行</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        ih = <a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder_1_1_if_handler.html">IfHandler</a>(initial_field=initial_field, field=field, params=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>, value=value, symbol=symbol)</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        success = ih.handleNode(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">if</span> success:</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            texts = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, node=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>)</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">if</span> ih.checking_mark(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>):</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            <span class="comment"># 设置为反的</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            texts.mark[<span class="stringliteral">&#39;if_next&#39;</span>] = <span class="keywordflow">not</span> success</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> texts</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html">  125</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html">ElseNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html#ac346c010ffa936a45015b30ac89f7564">  127</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html#ac346c010ffa936a45015b30ac89f7564">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;if_next&#39;</span> <span class="keywordflow">not</span> <span class="keywordflow">in</span> texts.mark.keys():</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                msg=<span class="stringliteral">&#39;Cannot find the if tag in front of the else tag&#39;</span>,</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                obj=TagHandlerError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            if_next = texts.mark[<span class="stringliteral">&#39;if_next&#39;</span>]</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <span class="keywordflow">if</span> <span class="keywordflow">not</span> if_next:</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                texts.mark.pop(<span class="stringliteral">&#39;if_next&#39;</span>)</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                <span class="keywordflow">return</span> texts</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                texts.mark.pop(<span class="stringliteral">&#39;if_next&#39;</span>)</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                <span class="keywordflow">return</span> self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>)</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html">  143</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html">SwitchNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html#a7c7ca45b3c9ba60d7e29438ed9f0ef9f">  145</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html#a7c7ca45b3c9ba60d7e29438ed9f0ef9f">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        axc_node = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        field_name = axc_node.attrs[<span class="stringliteral">&#39;field&#39;</span>].text</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            value = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>[field_name]</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">except</span> KeyError <span class="keyword">as</span> ke:</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                msg=f<span class="stringliteral">&#39;The parameter named `{field_name}` does not exist in the called method&#39;</span>,</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                obj=TagHandlerError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        case_nodes = axc_node.children[<span class="stringliteral">&#39;case&#39;</span>]</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        check_node = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">for</span> cn <span class="keywordflow">in</span> case_nodes:</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            <span class="keywordflow">if</span> cn.attrs[<span class="stringliteral">&#39;value&#39;</span>].text == value:</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                check_node = cn.node</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                <span class="keywordflow">break</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keywordflow">if</span> check_node <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            check_node = axc_node.children[<span class="stringliteral">&#39;default&#39;</span>][0].node</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        texts = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, check_node)</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keywordflow">return</span> texts</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html">  168</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html">IncludeNode</a>(<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">AbstractNode</a>):</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html#ab8eb674bfeea64ca7982a0ab6d03bd6b">  170</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html#ab8eb674bfeea64ca7982a0ab6d03bd6b">apply</a>(self, *args, **kwargs):</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        texts = kwargs[<span class="stringliteral">&#39;texts&#39;</span>]</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        axc_node = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate_xml_cls</a>(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">root</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">node</a>, self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">params</a>)</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        from_node_name = axc_node.attrs[<span class="stringliteral">&#39;from&#39;</span>].text</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        templates = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.xNode.children[<span class="stringliteral">&#39;template&#39;</span>]</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        target_template = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">for</span> t <span class="keywordflow">in</span> templates:</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keywordflow">if</span> t.attrs[<span class="stringliteral">&#39;id&#39;</span>].text == from_node_name:</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                target_template = t</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">if</span> target_template <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                msg=f<span class="stringliteral">&#39;The template named `{from_node_name}` could not be found from the node&#39;</span>,</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                obj=NotFindTemplateError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        texts = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">parseNode</a>(texts, target_template.node)</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span> texts</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html">  187</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html">ResultABC</a>(ABC):</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    @staticmethod</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#a49f3d20fb1dd1f4d178a9b68f0064809">  189</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#a49f3d20fb1dd1f4d178a9b68f0064809">get_type</a>(structure: dict):</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        t = structure[<span class="stringliteral">&#39;_type&#39;</span>].split(<span class="stringliteral">&#39;.&#39;</span>)</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        cls_name = t[len(t) - 1]</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        package_name = <span class="stringliteral">&#39;.&#39;</span>.join(t[:len(t) - 1])</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        package = importlib.import_module(package_name)</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        _type = getattr(package, cls_name)</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="keywordflow">return</span> _type</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    @staticmethod</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#ae2508f0b5522b36b36acab0e5596fbe7">  198</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#ae2508f0b5522b36b36acab0e5596fbe7">generate</a>(data: list, structure: dict):</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        ret = []</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> isinstance(data, list) <span class="keywordflow">and</span> data <span class="keywordflow">is</span> <span class="keywordflow">not</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            data = [data]</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">if</span> data <span class="keywordflow">is</span> <span class="keywordflow">not</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            <span class="keywordflow">for</span> _data_item <span class="keywordflow">in</span> data:</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                obj = ResultABC.get_type(structure)()</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;                <span class="keywordflow">for</span> field, properties <span class="keywordflow">in</span> structure.items():</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;                    <span class="keywordflow">if</span> field != <span class="stringliteral">&#39;_type&#39;</span>:</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                        <span class="keywordflow">if</span> isinstance(properties, dict):</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                            setattr(obj, field, ResultABC.generate(_data_item, properties))</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                            setattr(obj, properties, _data_item[field])</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                ret.append(obj)</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            ret.append(<span class="keywordtype">None</span>)</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordflow">return</span> ret</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html">  218</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html">ResultMapNode</a>(object):</div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8e6a521765975b95ad1d95b406d88e18">  219</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8e6a521765975b95ad1d95b406d88e18">__init__</a>(self, target_obj, node, data):</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a5bf86bce325374fe8e3b04feb4877e6b">  220</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a5bf86bce325374fe8e3b04feb4877e6b">target_obj</a> = target_obj</div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a6b3acaf29386531bc272f1a567ed09cb">  221</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a6b3acaf29386531bc272f1a567ed09cb">node</a> = node</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a7b991ec030ffce0abe57764723d5c19d">  222</a></span>&#160;        self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a7b991ec030ffce0abe57764723d5c19d">data</a> = data</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8f4dda594fc66dd71708b0f71647c164">  224</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8f4dda594fc66dd71708b0f71647c164">apply</a>(self):</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        resultMapTags = self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a5bf86bce325374fe8e3b04feb4877e6b">target_obj</a>.xNode.children[<span class="stringliteral">&#39;resultMap&#39;</span>]</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        resultNode = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">for</span> i <span class="keywordflow">in</span> resultMapTags:</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            <span class="keywordflow">if</span> i.attrs[<span class="stringliteral">&#39;id&#39;</span>].text == self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a6b3acaf29386531bc272f1a567ed09cb">node</a>.mark[<span class="stringliteral">&#39;resultType&#39;</span>]:</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                <span class="comment"># 这里不需要break，因为可以重复，取最后一位</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                resultNode = i</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <span class="keywordflow">if</span> resultNode <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                msg=<span class="stringliteral">&quot;Can&#39;t find resultMap template&quot;</span>,</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                obj=NotFindTemplateError, LogObject=self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a5bf86bce325374fe8e3b04feb4877e6b">target_obj</a>.log_obj, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        structure = ForeignNode.apply(resultNode)</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        <span class="keywordflow">return</span> ResultABC.generate(self.<a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a7b991ec030ffce0abe57764723d5c19d">data</a>, structure)</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html">  240</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html">ForeignNode</a>:</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    @staticmethod</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html#a43aed14d5addf8d7d8a04ea3f8e71365">  242</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html#a43aed14d5addf8d7d8a04ea3f8e71365">apply</a>(resultNode):</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;type&#39;</span> <span class="keywordflow">not</span> <span class="keywordflow">in</span> resultNode.attrs.keys():</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            ALog.log_error(</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                msg=f<span class="stringliteral">&#39;The attribute named `type` could not be found from the node&#39;</span>,</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                obj=TagAttributeError, raise_exception=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        structure = {<span class="stringliteral">&#39;_type&#39;</span>: resultNode.attrs[<span class="stringliteral">&#39;type&#39;</span>].text}</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;result&#39;</span> <span class="keywordflow">in</span> resultNode.children.keys():</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            <span class="keywordflow">for</span> i <span class="keywordflow">in</span> resultNode.children[<span class="stringliteral">&#39;result&#39;</span>]:</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                structure[i.attrs[<span class="stringliteral">&#39;field&#39;</span>].text] = i.attrs[<span class="stringliteral">&#39;properties&#39;</span>].text</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="keywordflow">if</span> <span class="stringliteral">&#39;foreign&#39;</span> <span class="keywordflow">in</span> resultNode.children.keys():</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            <span class="keywordflow">for</span> i <span class="keywordflow">in</span> resultNode.children[<span class="stringliteral">&#39;foreign&#39;</span>]:</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                structure[i.attrs[<span class="stringliteral">&#39;name&#39;</span>].text] = ForeignNode.apply(i)</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keywordflow">return</span> structure</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node_html_aaa93428a32e008f153660c9f15f0d6e9"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#aaa93428a32e008f153660c9f15f0d6e9">aestate.work.xmlhandler.nodes.UpdateNode.TempTextNode.__init__</a></div><div class="ttdeci">def __init__(self, text)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00066">nodes.py:66</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html">aestate.work.xmlhandler.nodes.IfNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00079">nodes.py:79</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder_html"><div class="ttname"><a href="namespaceaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder.html">aestate.work.xmlhandler.XMLScriptBuilder</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_m_l_script_builder_8py_source.html#l00001">XMLScriptBuilder.py:1</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html_a5bf86bce325374fe8e3b04feb4877e6b"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a5bf86bce325374fe8e3b04feb4877e6b">aestate.work.xmlhandler.nodes.ResultMapNode.target_obj</a></div><div class="ttdeci">target_obj</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00220">nodes.py:220</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html_a8f4dda594fc66dd71708b0f71647c164"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8f4dda594fc66dd71708b0f71647c164">aestate.work.xmlhandler.nodes.ResultMapNode.apply</a></div><div class="ttdeci">def apply(self)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00224">nodes.py:224</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html">aestate.work.xmlhandler.nodes.SwitchNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00143">nodes.py:143</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node_html_a43aed14d5addf8d7d8a04ea3f8e71365"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html#a43aed14d5addf8d7d8a04ea3f8e71365">aestate.work.xmlhandler.nodes.ForeignNode.apply</a></div><div class="ttdeci">def apply(resultNode)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00242">nodes.py:242</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c_html_ae2508f0b5522b36b36acab0e5596fbe7"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#ae2508f0b5522b36b36acab0e5596fbe7">aestate.work.xmlhandler.nodes.ResultABC.generate</a></div><div class="ttdeci">def generate(list data, dict structure)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00198">nodes.py:198</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a1842fe8327f9c8ba438d27c995e53d63"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a1842fe8327f9c8ba438d27c995e53d63">aestate.work.xmlhandler.nodes.AbstractNode.parseNode</a></div><div class="ttdeci">def parseNode(self, AestateNode texts, node)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00030">nodes.py:30</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1work_1_1xmlhandler_1_1base_html"><div class="ttname"><a href="namespaceaestate_1_1work_1_1xmlhandler_1_1base.html">aestate.work.xmlhandler.base</a></div><div class="ttdef"><b>Definition:</b> <a href="work_2xmlhandler_2base_8py_source.html#l00001">base.py:1</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html_a6b3acaf29386531bc272f1a567ed09cb"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a6b3acaf29386531bc272f1a567ed09cb">aestate.work.xmlhandler.nodes.ResultMapNode.node</a></div><div class="ttdeci">node</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00221">nodes.py:221</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node_html_a5d057b4f53fc116fb5be5d150acaf41e"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html#a5d057b4f53fc116fb5be5d150acaf41e">aestate.work.xmlhandler.nodes.SelectNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00054">nodes.py:54</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_foreign_node.html">aestate.work.xmlhandler.nodes.ForeignNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00240">nodes.py:240</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1base_1_1_aestate_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1base_1_1_aestate_node.html">aestate.work.xmlhandler.base.AestateNode</a></div><div class="ttdef"><b>Definition:</b> <a href="work_2xmlhandler_2base_8py_source.html#l00028">base.py:28</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_adaa85164e7b3ec3b1a2c5cf4c8ca911a"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#adaa85164e7b3ec3b1a2c5cf4c8ca911a">aestate.work.xmlhandler.nodes.AbstractNode.target_obj</a></div><div class="ttdeci">target_obj</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00018">nodes.py:18</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html_a8e6a521765975b95ad1d95b406d88e18"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a8e6a521765975b95ad1d95b406d88e18">aestate.work.xmlhandler.nodes.ResultMapNode.__init__</a></div><div class="ttdeci">def __init__(self, target_obj, node, data)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00219">nodes.py:219</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder_1_1_if_handler_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1_x_m_l_script_builder_1_1_if_handler.html">aestate.work.xmlhandler.XMLScriptBuilder.IfHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_x_m_l_script_builder_8py_source.html#l00020">XMLScriptBuilder.py:20</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a7aa2ed443aef990f3441cf1db669ff61"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a7aa2ed443aef990f3441cf1db669ff61">aestate.work.xmlhandler.nodes.AbstractNode.params</a></div><div class="ttdeci">params</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00019">nodes.py:19</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html">aestate.work.xmlhandler.nodes.UpdateNode.TempTextNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00065">nodes.py:65</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_html_a55cf7bf0a568efe435da3b0136c6ab32"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html#a55cf7bf0a568efe435da3b0136c6ab32">aestate.work.xmlhandler.nodes.UpdateNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00069">nodes.py:69</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_ad6d164442e31cebed14dd59199f652ee"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#ad6d164442e31cebed14dd59199f652ee">aestate.work.xmlhandler.nodes.AbstractNode.XML_IGNORE_NODES</a></div><div class="ttdeci">XML_IGNORE_NODES</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00024">nodes.py:24</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a3091e2510b7daeee83f664d35417b673"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3091e2510b7daeee83f664d35417b673">aestate.work.xmlhandler.nodes.AbstractNode.root</a></div><div class="ttdeci">root</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00021">nodes.py:21</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_select_node.html">aestate.work.xmlhandler.nodes.SelectNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00052">nodes.py:52</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1util_1_1_log_html"><div class="ttname"><a href="namespaceaestate_1_1util_1_1_log.html">aestate.util.Log</a></div><div class="ttdef"><b>Definition:</b> <a href="_log_8py_source.html#l00001">Log.py:1</a></div></div>
<div class="ttc" id="anamespaceaestate_1_1exception_html"><div class="ttname"><a href="namespaceaestate_1_1exception.html">aestate.exception</a></div><div class="ttdef"><b>Definition:</b> <a href="exception_2____init_____8py_source.html#l00001">__init__.py:1</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html">aestate.work.xmlhandler.nodes.ResultABC</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00187">nodes.py:187</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node_html_a3ed30ff569976462c08f695cf0f53abc"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_1_1_temp_text_node.html#a3ed30ff569976462c08f695cf0f53abc">aestate.work.xmlhandler.nodes.UpdateNode.TempTextNode.text</a></div><div class="ttdeci">text</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00067">nodes.py:67</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node_html_ab8eb674bfeea64ca7982a0ab6d03bd6b"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html#ab8eb674bfeea64ca7982a0ab6d03bd6b">aestate.work.xmlhandler.nodes.IncludeNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00170">nodes.py:170</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a5a64756f416d336c20c37f9cda13c90d"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a5a64756f416d336c20c37f9cda13c90d">aestate.work.xmlhandler.nodes.AbstractNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00027">nodes.py:27</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a70b64b0db5235389b84f813c93aa5edb"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a70b64b0db5235389b84f813c93aa5edb">aestate.work.xmlhandler.nodes.AbstractNode.aestate_xml_cls</a></div><div class="ttdeci">aestate_xml_cls</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00020">nodes.py:20</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c_html_a49f3d20fb1dd1f4d178a9b68f0064809"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_a_b_c.html#a49f3d20fb1dd1f4d178a9b68f0064809">aestate.work.xmlhandler.nodes.ResultABC.get_type</a></div><div class="ttdeci">def get_type(dict structure)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00189">nodes.py:189</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a3b25dcab406372ea173afaf2220efc8a"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a3b25dcab406372ea173afaf2220efc8a">aestate.work.xmlhandler.nodes.AbstractNode.node</a></div><div class="ttdeci">node</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00022">nodes.py:22</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_include_node.html">aestate.work.xmlhandler.nodes.IncludeNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00168">nodes.py:168</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node_html_ac346c010ffa936a45015b30ac89f7564"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html#ac346c010ffa936a45015b30ac89f7564">aestate.work.xmlhandler.nodes.ElseNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00127">nodes.py:127</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_else_node.html">aestate.work.xmlhandler.nodes.ElseNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00125">nodes.py:125</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html">aestate.work.xmlhandler.nodes.ResultMapNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00218">nodes.py:218</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a8f110be28559b4a97e157af3cb67b4b7"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a8f110be28559b4a97e157af3cb67b4b7">aestate.work.xmlhandler.nodes.AbstractNode.XML_KEY</a></div><div class="ttdeci">XML_KEY</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00023">nodes.py:23</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node_html_a2fe7f749b89b7bebd8b2570ba36d17a7"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_if_node.html#a2fe7f749b89b7bebd8b2570ba36d17a7">aestate.work.xmlhandler.nodes.IfNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00081">nodes.py:81</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html_a2dc3c3a10d6f40d5d77030fba62c4ff1"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html#a2dc3c3a10d6f40d5d77030fba62c4ff1">aestate.work.xmlhandler.nodes.AbstractNode.__init__</a></div><div class="ttdeci">def __init__(self, target_obj, params, aestate_xml_cls, root, value, XML_KEY, XML_IGNORE_NODES)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00017">nodes.py:17</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_update_node.html">aestate.work.xmlhandler.nodes.UpdateNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00064">nodes.py:64</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node_html"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_abstract_node.html">aestate.work.xmlhandler.nodes.AbstractNode</a></div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00012">nodes.py:12</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node_html_a7c7ca45b3c9ba60d7e29438ed9f0ef9f"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_switch_node.html#a7c7ca45b3c9ba60d7e29438ed9f0ef9f">aestate.work.xmlhandler.nodes.SwitchNode.apply</a></div><div class="ttdeci">def apply(self, *args, **kwargs)</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00145">nodes.py:145</a></div></div>
<div class="ttc" id="aclassaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node_html_a7b991ec030ffce0abe57764723d5c19d"><div class="ttname"><a href="classaestate_1_1work_1_1xmlhandler_1_1nodes_1_1_result_map_node.html#a7b991ec030ffce0abe57764723d5c19d">aestate.work.xmlhandler.nodes.ResultMapNode.data</a></div><div class="ttdeci">data</div><div class="ttdef"><b>Definition:</b> <a href="nodes_8py_source.html#l00222">nodes.py:222</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
